<?php

/**
 * video actions.
 *
 * @package    elearning
 * @subpackage video
 * @author     Your name here
 */
class videoActions extends sfActions
{
  public function executeIndex(sfWebRequest $request)
  {
    $this->pager = VideoPeer::getListWithPagination(15);
	$this->rows = $this->pager->getResults();
	
	//Breadcrumb add items
	prestaBreadcrumb::getInstance()->addItem(__('Video list'), '@video');	
  }

  public function executeShow(sfWebRequest $request)
  {
    $this->video = VideoPeer::retrieveByPk($request->getParameter('id'));
    $this->forward404Unless($this->video);
  }
}
